<?php
/**
 * News Model Class
 * 
 * This file is a subject under proprietary sofrware license
 * 
 * @category
 * @package
 * @subpackage
 * @author      valerii lazarevych <lazarevuch@gmail.com>
 * @copyright   Copyright(c) Valerii Lazarevych
 * @license     proprietary software license
 * @version     $Id: News.php 29.09.2012 21:04:05 valerii $
 */

/**
 * Class News Model
 */
class models_News extends Model
{    
    /**
     * Get news list
     * 
     * @return array of News objects 
     */
    public function newsList()
    {
       return $this->select('id,title,tags')->order('id','desc')->execute();
    }                
}
